<html>
  <head>
    <title>Hacker News</title>
    <link rel="stylesheet" href="/public/css/news.css" />
  </head>
  <body>
    {# <ul class="news-view view">
      {% for item in list %}
        <li class="item">
          <a href="{{item.url}}">{{item.title}} </a>
        </li>
      {% endfor %}
      <hr/>
      <p>this.app.config.env: {{env}}</p>

      <form action="/form" method="post"> 
        username: <input name="username" value="11123@12.com"/> <br/>
        password: <input name="password" value="123123"/> <br/>
        re-password: <input name="re-password" value="123123"/> <br/>
        <button type="submit">
          submit
        </button>
      </form>
      <hr/> #}
      <form method="POST" action="/uploads?_csrf={{ctx.csrf}}" enctype="multipart/form-data">
        title: <input name="title" /><br/>
        file: <input name="file" type="file"/> <br/>
        <button type="submit">上传</button>
      </form>
    </ul>
  </body>
</html>
